package com.hl.domain;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 
 * @TableName gongshi
 */
@Data
public class Gongshi implements Serializable {
    /**
     * id
     */
    private Integer id;

    /**
     * 名称
     */
    private String name;

    /**
     * 地址
     */
    private String home;

    /**
     * 简介
     */
    private String jianjie;

    /**
     * 邮箱
     */
    private String youxiang;

    /**
     * 时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date time;

    public Gongshi(String name, String home, String jianjie, String youxiang, Date time) {
        this.name = name;
        this.home = home;
        this.jianjie = jianjie;
        this.youxiang = youxiang;
        this.time = time;
    }

    public Gongshi() {
    }

    public Gongshi(Integer id, String name, String home, String jianjie, String youxiang, Date time) {
        this.id = id;
        this.name = name;
        this.home = home;
        this.jianjie = jianjie;
        this.youxiang = youxiang;
        this.time = time;
    }
}